
"""
These files provide two alternative data sources for generating italian
WAV files.

Thanks to Jacopo Deyla - Regione Emilia-Romagna (jdeyla@nospam-regione.emilia-romagna.it) 
for these files.
"""

# import the API interface module
from skimpyGimpy import skimpyAPI

INDEXFILEPATH = "indexZipFile.binary"
WAVEFILE = "/tmp/italian.wav"
WORD = "12345"

# create a wave generator
waveGenerator = skimpyAPI.Wave(WORD,
                              indexFile=INDEXFILEPATH # required!
                              )
# generate the wave data as waveText
waveText = waveGenerator.data()

# generate the wave data as waveText
# and also save to file
waveText = waveGenerator.data(WAVEFILE)
